package cn.xzsyzjc.service;

import cn.xzsyzjc.error.BusinessException;
import cn.xzsyzjc.service.model.UserModel;
import org.apache.commons.lang3.StringUtils;

public interface UserService {
    //通过用户ID获取用户对象的方法
    UserModel getUserById(Integer id);
    void register(UserModel userModel) throws BusinessException;
    /*
    telphone:用户注册手机
    password:用户加密后的密码
    */
    UserModel validateLogin(String telphone, String password) throws BusinessException;
}
